//
//  GameManager.hpp
//  fingeradvanture
//
//  Created by shuaibincheng on 16/5/1.
//
//

#ifndef GameManager_hpp
#define GameManager_hpp

#include "cocos2d.h"
#include "HeroListener.hpp"
#include "BattleField.hpp"

class GameManager : public HeroListener
{
private:
    BattleField *field;
    
public:
    GameManager();
    ~GameManager();
    virtual void heroEnter();
    virtual void heroExit();
    virtual void heroDied();
    
    void gameStart();
    void gamePause();
    void gameResume();
    void gameStop();
    
    BattleField *getBattleField();
    
    static GameManager *getInstance();
protected:
    static GameManager *mangaer;
}; 

#endif /* GameManager_hpp */
